﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.History
{
    [NHibernateEntity(Table = "ProductHistory")]
    public class ProductHistory
    {
        public ProductHistory() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }

        [BelongsTo(Column = "ID_ProductCategory")]
        public virtual ProductCategory ProductCategory { get; set; }

        [Property]
        public virtual string ProductCategoryName { get; set; }

        [BelongsTo(Column = "ID_Product")]
        public virtual Product Product { get; set; }

        [Property]
        public virtual ProductType ProductType { get; set; }

        [Property]
        public virtual ProductState ProductState { get; set; }

        [Property]
        public virtual DateTime StartDate { get; set; }

        [Property]
        public virtual DateTime EndDate { get; set; }
    }
}
